#include <stm8s_clk.h>

void CLK_ClearITPendingBit(CLK_IT_TypeDef CLK_IT)
{
  /* check the parameters */
  assert_param(IS_CLK_IT_OK(CLK_IT));
  
  if (CLK_IT == (uint8_t)CLK_IT_CSSD)
  {
    /* Clear the status of the security system detection interrupt */
    CLK->CSSR &= (uint8_t)(~CLK_CSSR_CSSD);
  }
  else /* CLK_PendingBit == (uint8_t)CLK_IT_SWIF */
  {
    /* Clear the status of the clock switch interrupt */
    CLK->SWCR &= (uint8_t)(~CLK_SWCR_SWIF);
  }
  
}

/**
  * @}
  */
  
/**
  * @}
  */
  

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
